package com.kaigejava.template.hotdrink;

/**
 * Created by kaigejava on 2019/9/4.
 */
public abstract class HotDrink {
    public final void prepareRecipe(){
        boilWater();
        brew();
        pourInCup();
        addCondiments();
        send();

    }

    protected abstract void addCondiments();

    protected abstract void brew();

    private final void boilWater() {
        System.out.println("一.烧水");
    }
    private final void pourInCup() {
        System.out.println("三.倒入杯中");
    }
    private final void send() {
        System.out.println("五.送个客人");
    }
}
